<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="ScaltblinescuEditDlg" widgetVar="ScaltblinescuEditDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.EditScaltblinescuTitle}">

            <h:form id="ScaltblinescuEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{scaltblinescuController.selected != null}">

                        <h:outputLabel value="#{myBundle.EditScaltblinescuLabel_scaltblinescuid}" for="scaltblinescuid" />
                        <h:outputText id="scaltblinescuid" value="#{scaltblinescuController.selected.scaltblinescuid}" />

                        <p:outputLabel value="#{myBundle.EditScaltblinescuLabel_scittbescunid}" for="scittbescunid" />
                        <p:inputText id="scittbescunid" value="#{scaltblinescuController.selected.scittbescunid}" title="#{myBundle.EditScaltblinescuTitle_scittbescunid}" required="true" requiredMessage="#{myBundle.EditScaltblinescuRequiredMessage_scittbescunid}"/>

                        <p:outputLabel value="#{myBundle.EditScaltblinescuLabel_scittbescun}" for="scittbescun" />
                        <p:selectOneMenu id="scittbescun" value="#{scaltblinescuController.selected.scittbescun}" required="true" requiredMessage="#{myBundle.EditScaltblinescuRequiredMessage_scittbescun}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scittbescunController.items}"
                                           var="scittbescunItem"
                                           itemValue="#{scittbescunItem}"
                                           itemLabel="#{scittbescunItem.scittbescunid.toString()}"
                                           />
                            <f:converter binding="#{scittbescunConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.EditScaltblinescuLabel_scaltblineinveid}" for="scaltblineinveid" />
                        <p:selectOneMenu id="scaltblineinveid" value="#{scaltblinescuController.selected.scaltblineinveid}" required="true" requiredMessage="#{myBundle.EditScaltblinescuRequiredMessage_scaltblineinveid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scaltblineinveController.items}"
                                           var="scaltblineinveidItem"
                                           itemValue="#{scaltblineinveidItem}"
                                           itemLabel="#{scaltblineinveidItem.scaltblineinveid.toString()}"
                                           />
                            <f:converter binding="#{scaltblineinveConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{scaltblinescuController.save}" value="#{myBundle.Save}" update="display,:ScaltblinescuListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,ScaltblinescuEditDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="ScaltblinescuEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
